package DBLayer;
import static org.junit.Assert.*;
import ModelLayer.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
     
public class DBSupplierTest {
	private DBSupplier dbSupObj;
	@Before
	public void setUp() throws Exception {
		setDbSupplier(new DBSupplier());
	}
	private void setDbSupplier(DBSupplier dbSupObj) {
		this.dbSupObj = dbSupObj;		
	}
	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testDBSupplier() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllSuppliers() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchSupplierName() {
		fail("Not yet implemented");
	}

	@Test
	public void testFindSupplier() {
		Supplier supObj = dbSupObj.findSupplier(2001,false);
		if(supObj != null)
	{
	  System.out.println("Supplier  " + supObj.getSuppId()+". "+ supObj.getCountry());
	}
	else{
		fail("Supplier not found");
	}
	}
	}


